README file for: Philips, Souza, and Whitten. "Globalization and Comparative Compositional Income Inequality."

Last Updated: 01/31/18
Stata Version: 14.2
R version 3.5.1 (2018-07-02)
RStudio Version 1.1.453

Contact: Flávio D.S. Souza (fsouza@tamu.edu)

Files in this folder:
- "Codebook.pdf": description of variables included in each dataset
- "Brazil_Data.dta": Stata dataset needed to replicate any empirical analyses on Brazilian data.
- "Canada_Data.dta": Stata dataset needed to replicate any empirical analyses on Canadian data.
- "Sweden_Data.dta": Stata dataset needed to replicate any empirical analyses on Swedish data.
- "Uruguay_Data.dta": Stata dataset needed to replicate any empirical analyses on Uruguayan data.
_ "US_Data.dta": Stata dataset needed to replicate any empirical analyses on US data.
- "Quick_Comparison.dta": Stata dataset needed to replicate Figure 4 in main manuscript.
- "dynsimladderploy.ado": Stata program to produce Dynamic Pie results figures ("ladder plots").
- "dynsimpie.ado": Stata program to run time-series analysis including compositional dependent variables.
- "missing.R": R script for replicating SI Figures 5 and 6.
- "LISData_missing.csv": file needed to reproduce Figure 5 in "missing.R".
- "PSWData_missing": file needed to reproduce Figure 6 in "missing.R".
- "replication.log": Stata log-file demonstrating "clean" run of replication.do
- "replication.do": Stata Do-file with commands to produce ALL analyses, figures, and tables in main manuscript and supplemental appendix.

Note: 
	In order to replicate analyses, save all of the above files, open replication.do, set a working directory of your own (indicating the folder where the above files are saved and where to output Figures) and run commands in the order they appear.

	Only two figures (Figure 5, 6 in SI) were produced using R. To reproduce them, open missing.R, set a working directory of your own (indicating the folder where the above files are saved and where to output Figures) and run commands in the order they appear.